package com.zzkk.database.controller;

import com.zzkk.database.admin.mapper.AdminMapper;
import com.zzkk.database.entity.SynAdmin;
import lombok.experimental.Accessors;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/")
public class AminController {

    @Autowired
    private AdminMapper adminMapper;

    @RequestMapping("admin")
    public List<SynAdmin> synAdminlk(){
        List<SynAdmin> synAdmin = adminMapper.get();
        return synAdmin;
    }

}
